package com.bdqn.ch06.JD.entity;

/**
 * Equip   装备
 *
 * @aurhor Administrator  whs
 * @since 2024/7/15
 */
public class Equip {

    private String name ;    // 装备名称
    private String type ;    // 装备类型、头盔、铠甲等
    private Long speedPlus;  // 速度增加
    private Long attackPlus; // 攻击增效
    private Long defensePlus; // 防御增效

    public void printEquip() {
        System.out.println(name+"[速度增效："+speedPlus+"；攻击增效："+attackPlus+"；防御增效："+defensePlus);
    }

    @Override
    public String toString() {
        return "Equip{" +
                "name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", speedPlus=" + speedPlus +
                ", attackPlus=" + attackPlus +
                ", defensePlus=" + defensePlus +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Long getSpeedPlus() {
        return speedPlus;
    }

    public void setSpeedPlus(Long speedPlus) {
        this.speedPlus = speedPlus;
    }

    public Long getAttackPlus() {
        return attackPlus;
    }

    public void setAttackPlus(Long attackPlus) {
        this.attackPlus = attackPlus;
    }

    public Long getDefensePlus() {
        return defensePlus;
    }

    public void setDefensePlus(Long defensePlus) {
        this.defensePlus = defensePlus;
    }
}
